package com.danny.service;

import com.spring.*;

@Commonent("userService")
public class UserService implements InitializingBean, IUserService, BeanNameAware {

    @AutoWried
    private OrderService orderService;

    @DyValue("danny")
    private String name;

    private String beanName;

    public void test() {
        System.out.println("name:" + name);
    }

    @Override
    public void afterPropertiesSet() {
//        System.out.println("################InitializingBean################");
    }

    @Override
    public void setBeanName(String beanName) {
        this.beanName = beanName;
    }
}
